/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package xml.valueobject2;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

/**
 *
 * @author CHIP
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "news"
})
@XmlRootElement(name = "news")
public class NewsList {
    @XmlElement(required=true)
    private List<News> news;
    public List<News> getListInfo(){
        if(news == null){
            news = new ArrayList<News>();
        }
        return news;
    }

}
